<?php
require_once 'init.php';

$news = cf\query2array(
	"SELECT id,DATE_FORMAT(dt,'%d.%m.%Y') as dt,name,txt,tag_title,tag_meta_keywords,tag_meta_descr FROM cf_news WHERE id=:id OR code=:id",
	array('id'=>cf\param::get('id'))
);
$smarty->assign('news',$news);

show(
	'news', 
	$news['name'], 
	array(array('name'=>'Новости',link=>'/news'),array('name'=>$news['name'],'link'=>'/news/'.$news['id'])), 
	$news['tag_title'], 
	$news['tag_meta_keywords'], 
	$news['tag_meta_descr']
);

?>